package at.fhooe.mcm12.java.sensors.data;

public class Humidity extends SensorValue{

	private double m_humidity;
	
	public Humidity(double _humidity, long _timestamp)
	{
		super(_timestamp, "");
		m_humidity = _humidity;
	}
	
	public double getHumidity()
	{
		return m_humidity;
	}
	
	public void setHumidity(double _humidity)
	{
		m_humidity = _humidity;
	}
	
	public String toString()
	{
		return String.format("%.2f %%", m_humidity);
	}

	@Override
	public String getUnit() {
		return "";
	}
}
